'use strict';

const Controller = require('egg').Controller;

class ToolConnection extends Controller {

  async jsonEditer() {
    const { ctx } = this
    ctx.validate({
      id: {
        type: 'mongo-id',
      },
    }, ctx.params);
    ctx.redirect(`/webnuxt-api/public/json-editer/index.html?id=${ctx.params.id}`);
  }
}

module.exports = ToolConnection;
